//
//  HNBackHomeButton.m
//  HappyNews
//
//  Created by baiping on 16/1/11.
//  Copyright © 2016年 BPWBANP. All rights reserved.
//

#import "HNBackHomeButton.h"

@implementation HNBackHomeButton


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    
   // 获得上下文
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    
    [[UIColor whiteColor] set];
    
    CGContextSetLineCap(ctx, kCGLineCapRound);
    
    CGContextSetLineWidth(ctx, 0.8);
    
    CGContextMoveToPoint(ctx, 5, 20);
    
    CGContextAddLineToPoint(ctx, 35, 20);
    
    CGContextAddLineToPoint(ctx, 20, 10);
    
    CGContextMoveToPoint(ctx, 35, 20);
    
    CGContextAddLineToPoint(ctx, 20, 30);
    
    CGContextStrokePath(ctx);
    
}


@end
